//*需要#绑定、*绑定等指令能触发的，在本体路径\lib\plugins\loader.js文件下第365行开始改成：
//case 'text':
            //替换前置符号，适配前后空格
            //e.msg = (e.msg || '') + (val.text || '').replace(/^\s*[＃井#]+\s*/, '#').replace(/^\s*[\\*※＊]+\s*/, '*').replace(/\s*[pP]anel\s*/, '面板').replace(/\s*[rR]enew\s*/, '更新').trim()
            //适配 /uid指令
            //e.msg = e.msg.replace(/^([#*]|#星铁|#绝区零)uid ?([0-9]{0,2}) ?(绑定|删除)? ?(\S*)$/, '$1$3uid$2$4').replace(/^([#*]|#星铁|#绝区零)绑定$/, '$1绑定uid')
            //break
            //自行删除注释的双下滑杠符号
export default class Button {
    constructor () {
      this.plugin = {
        name: 'miao',
        dsc: 'miao',
        priority: 900,
        rule: [
            {
                reg: /^#*([^#]+)\s*(详细|详情|面板|面版|圣遗物|武器[1-7]|伤害([1-9]+\d*)?)\s*(\d{9})*(.*[换变改].*)?$/,
                fnc: 'miaomb'
              },
              {
                reg: /^#?(原神)?绑定uid$/,
                fnc: 'miaomb'
              },
              ,
              {
                reg: /^#星铁绑定uid$/,
                fnc: 'miaomb'
              },
              {
                reg: /^#绝区零绑定uid$/,
                fnc: 'miaomb'
              }
        ]
      }
    }
    miaomb(e) {
    let game = ''
    if (e.game === 'sr' || e.isSr) {
        game = '星铁'
    } else if (e.game === 'zzz' || e.isSr) {
        game = '绝区零'
    }
    const button = [
      [
        { label: `绑定UID`, data: `/${game ? game + '绑定' : '绑定'}` },
        { label: `切换UID`, data: `/${game ? game + 'uid' : 'uid'}` },
        { label: `删除UID`, data: `/${game ? game + '删除uid' : '删除uid'}` },
      ],[
        { label: '扫码绑定', callback: '/扫码绑定' },
        { label: '更新面板', callback: `/${game ? game + '更新面板' : '更新面板'}` },
      ]
    ]
    return Bot.Button(button)
  }
}